<template>
  <Content title="确认">
    <view class="quality-confirmation-box">
      <u-form
        labelPosition="left"
        :model="model"
        labelWidth="150"
        labelAlign="left"
        :rules="rules"
        ref="uForm"
      >
        <u-form-item label="是否现场维修完成：" prop="boardingDate" required>
          <u-radio-group v-model="model.radio" placement="row">
            <u-radio label="否" name="0" style="margin-right: 20px"></u-radio>
            <u-radio label="是" name="1"></u-radio>
          </u-radio-group>
        </u-form-item>

        <u-form-item label="拆模类型：" prop="boardingDate" required>
          <uni-data-select
            v-model="model.originIncident"
            :localdata="localdata"
            placeholder="请填写拆模类型"
          ></uni-data-select>
        </u-form-item>

        <view class="tip-text">为了保证流程的顺利进行，请您正确填写信息</view>
        <view class="btn-v">
          <view class="but-box">
            <u-button class="btn" @click="close" text="取消"></u-button>
            <u-button
              class="btn"
              type="primary"
              @click="submit"
              text="确定"
            ></u-button>
          </view>
        </view>
      </u-form>
    </view>
  </Content>
</template>

<script>
import Content from "@/components/content/index.vue";
export default {
  components: {
    Content,
  },
  data() {
    return {
      id: "",
      model: {},
      rules: [],
      radioValue: "",
      localdata: [
        {
          text: "参观调研",
          value: "参观调研",
        },
        {
          text: "维保检验",
          value: "维保检验",
        },
        {
          text: "活动参会",
          value: "活动参会",
        },
        {
          text: "备航参航",
          value: "备航参航",
        },
      ],
    };
  },
  onLoad: function (option) {
    //option为object类型，会序列化上个页面传递的参数
  },
  onShow: function () {},
  mounted() {},
  methods: {
    close() {
      uni.navigateBack({
        delta: 1, //返回上一页
      });
    },
    submit() {},
  },
};
</script>

<style scoped lang="scss">
.quality-confirmation-box {
  padding: 40rpx;
  background-color: #fff;
  min-height: 100%;
}
.tip-text {
  color: #fb8b31;
  font-size: 24rpx;
  text-align: center;
  margin-top: 20rpx;
}
</style>
